﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'PRC_TB_ALERTS_TASKS_STATES_IN')
	BEGIN
		DROP  Procedure  dbo.PRC_TB_ALERTS_TASKS_STATES_IN
	END

GO

CREATE Procedure dbo.PRC_TB_ALERTS_TASKS_STATES_IN
	(
		@TATS_ALERT_TASK_ID int,
		@TATS_STATE_ID int
	)

AS

insert into TB_ALERTS_TASKS_STATES
(TATS_ALERT_TASK_ID,
TATS_STATE_ID)
values
(@TATS_ALERT_TASK_ID,
@TATS_STATE_ID)

GO

GRANT EXEC ON dbo.PRC_TB_ALERTS_TASKS_STATES_IN TO PUBLIC

GO

